/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bd.project;

import java.awt.Color;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;

/**
 *
 * @author dannyfao
 */
public class VentanaEst extends JFrame implements ActionListener{
    
    private JButton btnConsCursos, btnConsHorario, btnConsNotas, btExit;
    private JTextArea campoTexto;
    private JPanel panelPrincipal;
    
	public VentanaEst() {
		super("Ventana Estudiante");
		inicializarComponentes();
		acomodarComponentes();
		conectarEscuchas();
		
		Container contenedor = getContentPane();
                contenedor.setLayout(null);
		
		setSize(500,500);
                setVisible(true);
                setResizable(false);
            
                contenedor.add(panelPrincipal);
	}    
        
        public void inicializarComponentes(){
        
            btnConsCursos = new JButton("Consultar Cursos");
            btnConsHorario = new JButton("Consultar Horario");
            btnConsNotas = new JButton("Consultar Notas");
            btExit = new JButton("Salir");
            campoTexto = new JTextArea();
            panelPrincipal = new JPanel(null);
            panelPrincipal.setBackground(Color.WHITE);
            panelPrincipal.add(btnConsCursos);
            panelPrincipal.add(btnConsHorario);
            panelPrincipal.add(btnConsNotas);
            panelPrincipal.add(btExit);
            panelPrincipal.add(campoTexto);
        }
        
        public void acomodarComponentes(){
            btnConsCursos.setBounds(30, 130, 140, 30);
            btnConsHorario.setBounds(30, 180, 140, 30);
            btnConsNotas.setBounds(30, 230, 140, 30);
            btExit.setBounds(30, 360, 140, 30);
            btnConsNotas.setBounds(30, 280, 140, 30);
            panelPrincipal.setBounds(0,0, 500, 500);
            campoTexto.setBounds(90, 30, 250, 250);
         }
         
        public void conectarEscuchas(){
        
        }
    @Override
    public void actionPerformed(ActionEvent e) {
        
    }    
    
}
